import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
//引入路由组件
import router from "./router"
import pinia from './store'
import permission from "./permission"

const app = createApp(App)


import * as ElementPlusIconsVue from '@element-plus/icons-vue'


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

app.use(ElementPlus)
// import axios from 'axios'
// axios({
//   url:"/mock/login",
//   method:'post',
//   data:{
//     username:'test1',
//     password:'1234'
//   }
// })
//注册路由
app.use(router)
app.use(pinia)
app.use(permission)
app.mount('#app')
